package org.stimuliband.dsp.goertzel.dtmf;

import javax.sound.sampled.LineUnavailableException;

public class Start {

    public static void main(String[] args) throws LineUnavailableException {

        final int PROBES = 205;
        final int SAMPLING_RATE = 8000;

        TryDetect detection = new TryDetect(SAMPLING_RATE, PROBES);

        MicrophoneObserverable task = new MicrophoneObserverable(SAMPLING_RATE, PROBES, detection);
        Thread thread = new Thread(task);
        task.start();
        thread.start();
    }
}
